package com.kksoft.readcm.activity;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.kksoft.readcm.a.Appconfig;
import com.kksoft.readcm.a.ItemAppObservable;
import com.kksoft.readcm.a.LoginAppObservable;
import com.kksoft.readcm.objects.n;
import com.kksoft.readcm.pro.R;

public class CurrentListActivity extends ListViewActivity
{
  public final int H()
  {
    return 6;
  }

  protected final void a(boolean paramBoolean1, boolean paramBoolean2)
  {
    this.btnSync.setVisibility(View.GONE);
    this.progressbar.setVisibility(View.GONE);
  }

  protected final n a_()
  {
    n localn = Appconfig.getThis().getItemAppObservable().g();
    this.k = localn;
    return this.k;
  }

  protected final void b(Menu paramMenu)
  {
    super.b(paramMenu);
    paramMenu.add(-1, 24, 0, getString(R.string.nm_reading_list)).setIcon(R.drawable.ic_menu_reading_list);
    paramMenu.add(-1, 26, 0, getString(R.string.nm_read_list)).setIcon(R.drawable.ic_menu_archive);
  }

  protected final String e()
  {
    return "sortCurrent";
  }

  protected final String f()
  {
    return getString(R.string.nm_current_list);
  }

  protected final int j()
  {
    return 2;
  }

  protected final String l()
  {
    return getString(R.string.le_current_list_t);
  }

  protected final String m()
  {
    return getString(R.string.le_current_list_m);
  }

  protected final String n()
  {
    return getString(R.string.le_learn_more_b);
  }

  protected final void o()
  {
    HelpActivity.a(9, this);
  }

  public void onCreate(Bundle paramBundle)
  {
    this.a =true;
    super.onCreate(paramBundle);
    RelativeLayout.LayoutParams localLayoutParams = (RelativeLayout.LayoutParams)this.edtFilter.getLayoutParams();
    int i = Math.round(a(10.0F));
    int j = localLayoutParams.topMargin;
    int k = Math.round(a(10.0F));
    int m = localLayoutParams.bottomMargin;
    localLayoutParams.setMargins(i, j, k, m);
    this.edtFilter.setLayoutParams(localLayoutParams);
    this.btnSort.setVisibility(View.GONE);
  }

  protected final boolean q()
  {
    return true;
  }

  protected final void v()
  {
    if ((!Appconfig.getThis().b().a(true)) && (Appconfig.getThis().l()))
      this.c.setText(R.string.nm_fetching_current_list);
    else
      this.c.setText(R.string.nm_current_list);
  }

  protected final String x()
  {
    return "filterCurrent";
  }
}